#include<stdio.h>
int main(){
	int n,num;
	int i = 0;
	
	scanf("%d",&n);
	do{
		i += n % 10;
		n /= 10;
		num += 1;
	}while(n != 0);
	printf("%d %d",num,i);
	return 0;
}
